/**
 * 数据控制集
* */
//
class data_control {
    static IDs = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
    /**
     * @param {Number} Len 长度
     * @return {String} ID
     */
    static getRandId(Len = 16) {
        let id = '';
        for (let i = 0; i < Len; i++) {
            let ip = Math.floor(Math.random() * this.IDs.length);
            id += this.IDs[ip];
        }
        console.log('ID', id);
        return id;
    }
}

module.exports = data_control;